package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 备件入库表
 * </p>
 *
 * @author maoguanjun
 * @since 2022-11-17
 */
@Getter
@Setter
@TableName("mes_spare_inbound_info")
@ApiModel(value = "MesSpareInboundInfo对象", description = "备件入库表")
public class MesSpareInboundInfo implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("备件Id")
  private Long spareId;

  @ApiModelProperty("备件编号")
  private String code;

  @ApiModelProperty("入库量")
  private BigDecimal inboundQuantity;

  @ApiModelProperty("入库时间")
  private LocalDateTime inboundTime;

  @ApiModelProperty("制单人")
  private Long creator;

  @ApiModelProperty("制单部门")
  private Long creatorDept;

  @ApiModelProperty("创建时间")
  private LocalDateTime gmtCreate;

  @ApiModelProperty("修改时间")
  private LocalDateTime gmtModify;

  @ApiModelProperty("审核状态（0：待审1：已审2：审核中）")
  private Integer auditStatus;

  @ApiModelProperty("审核人")
  private Long approver;

  @ApiModelProperty("审核时间")
  private LocalDateTime approveTime;

  @ApiModelProperty("制单日期")
  private LocalDateTime creatorDate;

  @ApiModelProperty("说明")
  @Size(min = 0, max = 300, message = "说明长度不能超过300个字符")
  private String introduce;


}
